fr = open("D:\\file\\info.txt", "r", encoding="utf-8")
fw = open("D:\\file\\info.txt.bat", "w", encoding="utf-8")

for line in fr:
    if line.strip().split(",")[-1] != "测试":
        fw.write(line)

fw.close()
fr.close()
